#ifndef JKEYBOARDWIDGET_H
#define JKEYBOARDWIDGET_H

#include <QWidget>
#include <QTECore/JSingleton>

namespace QTE
{

class JPanelManager;
class JKeyboardWidgetPrivate;

class Q_DECL_HIDDEN JKeyboardWidget : public QWidget
{
	Q_OBJECT

public:
	JKeyboardWidget(JPanelManager *manager, QWidget *parent);
	~JKeyboardWidget();

public:
	void setNumberKeyboardLock(bool flag);

public:
	enum Panel { Number, Symbol, Words };
	Panel panel() const;

Q_SIGNALS:
	void autoPredicts();
	void panelChanged();
	void input(QKeyEvent *event);

protected:
	void showEvent(QShowEvent *event) override;
	void resizeEvent(QResizeEvent *event) override;
	bool eventFilter(QObject *watched, QEvent *event) override;

private:
	JKeyboardWidgetPrivate *d_ptr;
};

} //namespace QTE


#endif //JKEYBOARDWIDGET_H
